import { ajax } from '../http.js';
// import { ajaxSync } from '../httpSync.js';

const analyzeOfflineUrl = '/authc/business/analyze/offline'; // 到店付统计
const analyzeHotUrl = '/authc/business/analyze/hot'; // 爆品统计

const analyzeOffline = (data, success, fail) => { // 到店付统计
  ajax({
    url: analyzeOfflineUrl,
    data: data,
    success: success,
    fail: fail
  });
};

const analyzeHots = (data, success, fail) => { // 爆品统计
  ajax({
    url: analyzeHotUrl,
    data: data,
    success: success,
    fail: fail
  });
};

export {
  analyzeOffline, // 爆品统计
  analyzeHots // 爆品统计
}